package dao;

import java.util.List;

import domain.User;

public interface UserDao {
	
	User addUser(User user);
	
	void deleteUserById(Integer id);
	
	User updaetUser(User user);
	
	User login(String registerName, String password);
	
	// admin方将要使用到的方法
	Long countAllUsers();
	
	List<User> findUsersByLikeName(String name, Integer pageSize, Integer pageNumber);
	
	User findUserByName(String name);
	
	User findUserById(Integer id);
}
